<?php
/**
 * Created by PhpStorm.
 * User: xujm
 * Date: 2016/8/9
 * Time: 19:18
 */

use Phalcon\Mvc\Model;
use Phalcon\Mvc\Model\Query;
use Phalcon\Mvc\Model\Manager;

class Navcat extends Model
{
    public $navcid;
    public $name;
    public $active = 0;
    public $remark;

    public function getSource()
    {
        return 'nav_cat';
    }

    public function initialize()
    {
        $this->hasMany('navcid', 'nav', 'cid');
    }
    /**
     * @return mixed
     */
    public function getNavcid()
    {
        return $this->navcid;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @return int
     */
    public function getActive()
    {
        return $this->active;
    }

    /**
     * @return mixed
     */
    public function getRemark()
    {
        return $this->remark;
    }

    /**
     * @param mixed $navcid
     */
    public function setNavcid($navcid)
    {
        $this->navcid = $navcid;
    }

    /**
     * @param int $active
     */
    public function setActive($active)
    {
        $this->active = $active;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @param mixed $remark
     */
    public function setRemark($remark)
    {
        $this->remark = $remark;
    }


}